package edu.kit.aifb.ruleintegrator.rule.metric;

import uk.ac.shef.wit.simmetrics.similaritymetrics.AbstractStringMetric;
import uk.ac.shef.wit.simmetrics.similaritymetrics.CosineSimilarity;


public class CosineFunction extends AbstractFunction{
	AbstractStringMetric metric = new CosineSimilarity();
	
	@Override
	public String getName() {
		return "Cosine";
	}

	@Override
	public double measure(String attr1, String attr2) {
		return metric.getSimilarity(attr1, attr2);
	}

	
	

}
